from django.urls import path
from . import views
from .views_checkin import CheckinView
from .views import SportRecordView, WeightRecordView, DietRecordView

urlpatterns = [
    path('create_track/', views.create_track, name='create_track'),
    path('upload_track_point/', views.upload_track_point, name='upload_track_point'),
    path('get_track_points/<int:track_id>/', views.get_track_points, name='get_track_points'),
    path('end_track/', views.end_track, name='end_track'),
    path('upload_device_data/', views.upload_device_data, name='upload_device_data'),
    path('checkin/', CheckinView.as_view()),
    path('record/', SportRecordView.as_view()),
    path('weight/', WeightRecordView.as_view()),
    path('diet/', DietRecordView.as_view()),
]
